<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
  <table border="1">
    <caption>豪车大甩卖</caption>
    <tr>
      <th>编号</th>
      <th>名字</th>
      <th>价格</th>
      <th>类型</th>
    </tr>
    <tr v-for="(car,i) in arr">
      <td>{{i+1}}</td>
      <td>{{car.name}}</td>
      <td>{{car.price}}</td>
      <td>{{car.type}}</td>
    </tr>
  </table>
  <h1 v-for="car in arr">{{car.name}}---{{car.price}}---{{car.type}}</h1>
</div>
<script src="../js/vue.js"></script>
<script>
  let v = new Vue({
    el:"div",
    data:{
      arr:[
              {name:"比亚迪汉EV",price:250000,type:"轿车"},
              {name:"极克001",price:300000,type:"轿车"},
              {name:"保时捷918",price:5000000,type:"跑车"},
              {name:"法拉利SF90",price:6000000,type:"超跑"}
      ]
    },
    methods:{
      f(){

      }
    }
  });
</script>
</body>
</html>